package com.css.dao.impl;
import org.hibernate.SessionFactory;
import org.hibernate.Session;
public class BaseDAO {
	private SessionFactory sessionFactory;
	public SessionFactory getSessionFactory(){
		return sessionFactory;
	}
	
	public void  setSessionFactory(SessionFactory s){
		this.sessionFactory=s;
	}
	
	public Session getSession(){
		Session session=sessionFactory.openSession();
		return session;
	}
}
